package converter;

/**
 * Created by Сергей on 09.09.2014.
 */
public class PointImplementation implements Point {

    // class sets the object point
    // and defines methods for getting and setting data
    String [] point = new String[ 21 ];


    public void setPoint( String[] point ) {

        this.point = point;
    }


    @Override
    public Long getId() {

        return Long.valueOf( point[ 0 ] );
    }


    @Override
    public void setId( Long id ) {

        point[ 0 ]= id.toString();
    }


    @Override
    public Double getLatitude() {

        return Double.valueOf( point[ 2 ] );
    }


    @Override
    public void setLatitude( Double latitude ) {

        point[ 2 ]= latitude.toString();
    }


    @Override
    public Double getLongitude() {

        return Double.valueOf( point[ 3 ] );
    }


    @Override
    public void setLongitude( Double longitude ) {

        point[ 3 ]=longitude.toString();
    }


    @Override
    public String getName() {

        return point[ 1 ];
    }


    @Override
    public void setName( String name ) {

        point[ 1 ]=name;
    }


    @Override
    public String getDescription() {

        return point[ 10 ];
    }


    @Override
    public void setDescription( String description ) {

        point[ 10 ]=description;
    }
}